package com.telit.firecommand.dao;

import com.telit.firecommand.entity.FireWeatherInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface FireWeatherInfoDao {
    int deleteByPrimaryKey(Long id);

    int insert(FireWeatherInfo record);

    int insertSelective(FireWeatherInfo record);

    FireWeatherInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FireWeatherInfo record);

    int updateByPrimaryKey(FireWeatherInfo record);

    /**
     * 查询火情id关联天气信息
     * @param fireId
     * @return
     */
    FireWeatherInfo queryByFireId(@Param("fireId") Long fireId);
}